import request from './request'
var qs = require('qs')

// export const BASE_IMAGE_URL = 'http://192.168.1.166:8085/mobile_api/';
export const BASE_IMAGE_URL = location.origin+'/';
export const BASE_URL = location.origin+'/';


/**
 *  医生邀请患者
 */
export function qrcode(id) {
    return request.get('api/wechat/qrcode?type=hcp&hcp='+id)
}

export function hcp(id) {
    return request.get('api/hcp/'+id)
}
/**
 * 获取内容详情
 */
export function content(params) {
    return request.get('api/content',qs.stringify(params))
}
/**
 * 获取内容详情评论
 */
export function commentcontent(id,params) {
    return request.get('api/comment/content/'+id,qs.stringify(params))
}

